package com.example.ideaexithoot;

import com.intellij.openapi.components.*;

@State(
        name = "AutoPushSettings",
        storages = @Storage("AutoPushSettings.xml")
)
@Service(Service.Level.APP)
public final class AutoPushSettings implements PersistentStateComponent<AutoPushSettings> {

    public String autopushPath = "";

    public static AutoPushSettings getInstance() {
        return ServiceManager.getService(AutoPushSettings.class);
    }

    @Override
    public AutoPushSettings getState() {
        return this;
    }

    @Override
    public void loadState(AutoPushSettings state) {
        this.autopushPath = state.autopushPath;
    }
}
